package com.example.stock.entity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.stock.entity.eo.ProBarCbEo;
import com.example.stock.entity.eo.ProBarStockEo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProBarCbMapper extends BaseMapper<ProBarCbEo> {

    @Select("select ts_code from pro_bar_stock group by ts_code")
    List<String> getTsCode();
    @Select("select ts_code from pro_bar_stock_all group by ts_code")
    List<String> getTsCodeAll();

    @Select("select * from pro_bar_stock_all where ts_code = #{tsCode}")
    List<ProBarStockEo> selectListAll(@Param("tsCode") String tsCode);

    @Select("select * from pro_bar_stock where ts_code = #{tsCode}")
    List<ProBarStockEo> selectList_(@Param("tsCode") String tsCode);
}
